package org.kl.wx.entity;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.kl.bf.entity.AuditableEntity;

/**
 * 微信多媒体同步
 */

@Entity
@Table(name = "wx_media_asyn_info")
public class MediaAsynInfo extends AuditableEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5918876870699923088L;
	private App app;//所属公众号
	private Media media;//所属媒体
	private String mediaId;//媒体ID 
	
	public MediaAsynInfo(){
		
	}
	public MediaAsynInfo(String id){
		this.id = id ;
	}
	
	@ManyToOne
	@JoinColumn(name = "app_id")
	public App getApp() {
		return app;
	}
	public void setApp(App app) {
		this.app = app;
	}
	@ManyToOne
	@JoinColumn(name = "LOCAL_MEDIA_ID")
	public Media getMedia() {
		return media;
	}
	public void setMedia(Media media) {
		this.media = media;
	}
	public String getMediaId() {
		return mediaId;
	}
	public void setMediaId(String mediaId) {
		this.mediaId = mediaId;
	}
	
}

